package com.api.syh56.shengyunhui.service.impl;

import com.api.syh56.shengyunhui.entity.common.ZjxlTrace;
import com.api.syh56.shengyunhui.mapper.ZjxlTraceMapper;
import com.api.syh56.shengyunhui.service.ZjxlTraceService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ZjxlTraceServiceImpl extends ServiceImpl<ZjxlTraceMapper,ZjxlTrace> implements ZjxlTraceService {
    @Override
    public ZjxlTrace selectByWaybillId(Long waybillId) {
        QueryWrapper<ZjxlTrace> zjxlTraceQueryWrapper = new QueryWrapper<>();
        zjxlTraceQueryWrapper.lambda().eq(ZjxlTrace::getWaybillId, waybillId);
        ZjxlTrace one = getOne(zjxlTraceQueryWrapper);
        return one;
    }
}
